﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnesSystem.Controls.CommonTables.SC.CDTY
{
    /// <summary>
    /// ShuHouZhengTongGuanChaCtrl.xaml 的交互逻辑
    /// </summary>
    public partial class MaZuiXiaoJieCtrl : CustomCommonTableCtrl
    {
        public MaZuiXiaoJieCtrl()
        {
            InitializeComponent();
            string mzff = DataManager.Instance.CurrentPatientLink.AnesthesiaRecord.Mzff;
            
            if (mzff.IndexOf("喉罩全麻") > -1 || mzff.IndexOf("气管插管") > -1 || mzff.IndexOf("插管全麻") <8)
                if (mzff.IndexOf("喉罩") > -1)
                {
                    hz.Value = true;
                    _xh2.Text = DataManager.Instance.CurrentPatientLink.AnesthesiaRecord.Fx_Xh;
                    _sd2.Text = DataManager.Instance.CurrentPatientLink.AnesthesiaRecord.Clsd;
                }
                else
                {
                    qgcg.Value = true;
                    _xh1.Text = DataManager.Instance.CurrentPatientLink.AnesthesiaRecord.Fx_Xh;
                    _sd1.Text = DataManager.Instance.CurrentPatientLink.AnesthesiaRecord.Clsd;
                }
        }

    }

}

